package com.huawei.esdk.tp.southcommu.cxf.gen.v100r002c01;

import com.huawei.esdk.tp.southcommu.cxf.gen.v100r002c01.MediaEncryptType;

public class MediaEncryptTypeMapping
{
    public final static int AUTO_ENCRYPT = 0;
    public final static int FORCE_ENCRYPT = 1;
    public final static int NONE = 2;
    public final static int MIN=0;
    public final static int MAX=2;

    public static Integer enum2Int(MediaEncryptType videoFormat) {
        if (null == videoFormat)
        {
            return null;
        }
        switch (videoFormat) {
        case AUTO_ENCRYPT: {
            return AUTO_ENCRYPT;
        }
        case FORCE_ENCRYPT: {
            return FORCE_ENCRYPT;
        }
        case NONE: {
            return NONE;
        }
        default: {
            return null;
        }
        }
    }

    public static MediaEncryptType int2Enum(Integer num) {
        if(null==num){
            return null;
        }
        switch (num) {
        case AUTO_ENCRYPT: {
            return MediaEncryptType.AUTO_ENCRYPT;
        }
        case FORCE_ENCRYPT: {
            return MediaEncryptType.FORCE_ENCRYPT;
        }
        case NONE: {
            return MediaEncryptType.NONE;
        }
        default: {
            return null;
        }
        }
    }

}
